/*// Ih Badhon Chowdhury //*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long long double
#define sp " "
#define pb push_back
#define cinv(v) for(auto &i:v) cin >> i;
#define vi vector<int>
#define vii vector<ll>
#define cout(v) for(auto e:v) cout << e << sp;
#define M 1e5
#define yes cout << "YES" << endl
#define no cout << "NO" << endl
#define case "Case " << test++ << ": "
#define all(v) v.begin(), v.end()
#define tst int tst; int test=1; cin >> tst; while(tst--)
#define Faster ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define nl "\n"
void solve()
{
//start
}
// Driver Code
int main()
{
Faster;
ll tc = 1, test = 1;
//cin >> tc;
while(tc--){
//solve();
int n, s;
cin >> n >> s;
int res = 100;
bool ok = 0;
while(n--)
{
int x, y;
cin >> x >> y;
if(x<s){
if(y)
res = min(res,y);
}
if(x<s or x==s and y==0)
ok = 1;
}
if(ok) cout << 100 - res;
else cout << -1 << nl;
}
}
1029B - Creating the Contest | 1421A - XORwice |
1029A - Many Equal Substrings | 1675D - Vertical Paths |
1271C - Shawarma Tent | 805A - Fake NP |
1163A - Eating Soup | 787A - The Monster |
807A - Is it rated | 1096A - Find Divisible |
1430C - Numbers on Whiteboard | 1697B - Promo |
208D - Prizes Prizes more Prizes | 659A - Round House |
1492C - Maximum width | 171B - Star |
1512B - Almost Rectangle | 831B - Keyboard Layouts |
814A - An abandoned sentiment from past | 268C - Beautiful Sets of Points |
1391C - Cyclic Permutations | 11A - Increasing Sequence |
1406A - Subset Mex | 1365F - Swaps Again |
50B - Choosing Symbol Pairs | 1719A - Chip Game |
454B - Little Pony and Sort by Shift | 1152A - Neko Finds Grapes |
1719B - Mathematical Circus | 1719C - Fighting Tournament |